package org.jeecg.modules.ws.service.impl;

import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.jeecg.modules.ws.entity.WsLrb;
import org.jeecg.modules.ws.mapper.WsLrbMapper;
import org.jeecg.modules.ws.service.IWsLrbService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.Date;

/**
 * @Description: 利润表
 * @Author: jeecg-boot
 * @Date:   2025-02-28
 * @Version: V1.0
 */
@Service
public class WsLrbServiceImpl extends ServiceImpl<WsLrbMapper, WsLrb> implements IWsLrbService {

    @Override
    public void deleteBySq(String shxydm, Date skssqq, Date skssqz) {
        LambdaUpdateWrapper<WsLrb> wrapper = Wrappers.lambdaUpdate(WsLrb.class);
        wrapper.eq(WsLrb::getShxydm,shxydm).eq(WsLrb::getSkssqq,skssqq).eq(WsLrb::getSkssqz,skssqz);
        remove(wrapper);
    }
}
